﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="InvokeResult.ascx.cs" Inherits="WebService_Components_InvokeResult" %>

<div style="padding:2px 0px;">
<span class="a-btn">
    <input id="result-option-parameter-<%=MethodName %>" checked="checked" value="1" name="result-mode-<%=MethodName %>" onclick="ChangeLoggingMode('<%=MethodName%>','parameter');" type="radio">
    <label for="result-option-parameter-<%=MethodName %>">Result</label></span><span class="mm-split">|</span>
<span class="a-btn">
    <input id="result-option-soap-<%=MethodName %>" value="0" name="result-mode-<%=MethodName %>" onclick="ChangeLoggingMode('<%=MethodName%>','soap');" type="radio">
    <label for="result-option-soap-<%=MethodName %>">Web Request Information</label></span>
    </div>
<div class="line-sub"></div>

<div id="result-panel-parameter-<%=MethodName %>">
<%=InvokeHtml %>
    </div>

<div id="result-panel-soap-<%=MethodName %>" style="display:none;">
    <div class="header-2" style="padding-left:2px;">Web Request<span class="mm-split">|</span>
        Content Length:<%=GetTogether.Utility.StringHelper.GetSizeString(RequestSOAP.Length.ToString()) %>
        <span class="mm-split">|</span>
        <a href="javascript:;;" onclick="FormatXml('result-soap-request-<%=MethodName %>');">Format XML</a>
        <span class="mm-split">|</span>
        Open in New Window : <a href="javascript:;;" onclick="ViewBy('<%=MethodName %>','viewer','soap-request-{0}');">
            Viewer</a> , <a href="javascript:;;" onclick="ViewBy('<%=MethodName %>','text/xml','soap-request-{0}');">
                XML</a> , <a href="javascript:;;" onclick="ViewBy('<%=MethodName %>','text/plain','soap-request-{0}');">
                    TEXT</a> , <a href="javascript:;;" onclick="ViewBy('<%=MethodName %>','text/html','soap-request-{0}');">
                        HTML</a>
        
    </div>
    <div class="line-sub"></div>
    <form id="form-soap-request-<%=MethodName %>" method="post" target="_blank" action="../Viewer.aspx">
        <input value="text/plain" name="type-soap-request-<%=MethodName %>" id="type-soap-request-<%=MethodName %>" type="hidden">
    <textarea rows="5" name="result-soap-request-<%=MethodName %>" id="result-soap-request-<%=MethodName %>" style="height:60px;width:100%;border:none;"><%=RequestSOAP %></textarea>
        </form>
    <div class="line-sub"></div>

    <div class="header-2" style="padding-left:2px;">SOAP Response<span class="mm-split">|</span>
        Content Length:<%=GetTogether.Utility.StringHelper.GetSizeString(ResponseSOAP.Length.ToString()) %>
        <span class="mm-split">|</span>
        <a href="javascript:;;" onclick="FormatXml('result-soap-response-<%=MethodName %>');">Format XML</a>
        <span class="mm-split">|</span>
        Open in New Window : <a href="javascript:;;" onclick="ViewBy('<%=MethodName %>','viewer','soap-response-{0}');">
            Viewer</a> , <a href="javascript:;;" onclick="ViewBy('<%=MethodName %>','text/xml','soap-response-{0}');">
                XML</a> , <a href="javascript:;;" onclick="ViewBy('<%=MethodName %>','text/plain','soap-response-{0}');">
                    TEXT</a> , <a href="javascript:;;" onclick="ViewBy('<%=MethodName %>','text/html','soap-response-{0}');">
                        HTML</a>

    </div>
    <div class="line-sub"></div>
        <form name="form-soap-response-<%=MethodName %>" id="form-soap-response-<%=MethodName %>" method="post" target="_blank" action="../Viewer.aspx">
        <input value="text/plain" name="type-soap-response-<%=MethodName %>" id="type-soap-response-<%=MethodName %>" type="hidden">
        <textarea rows="5" id="result-soap-response-<%=MethodName %>" name="result-soap-response-<%=MethodName %>" style="height:60px;width:100%;border:none;"><%=ResponseSOAP %></textarea>
            </form>

    <div>
        <div class="line-sub"></div>
        <div class="header-2" style="padding-left:2px;">Add this request & reponse to proxy</div>
        <div class="line-wsp"></div>
        <div>
            <table cellspacing="0px" cellpadding="0px" style="width:100%;">
                <tr><td style="width:5%;vertical-align:top;white-space:nowrap;">Proxy Name</td><td>
                <textarea id="result-soap-proxy-name-<%=MethodName %>" rows="5" class="txt-2" cols="5" style="width:100%;"><%=HistoryName %></textarea>
                                                       </td></tr>
                <tr><td colspan="2" class="line-wsp"></td></tr>
                <tr><td style="width:5%;vertical-align:top;white-space:nowrap;">Regular Expression</td><td>
                <textarea id="result-soap-proxy-regular-<%=MethodName %>" rows="5" class="txt-2" cols="5" style="width:100%;"></textarea>
                                                       </td></tr>
                <tr><td colspan="2" class="line-wsp"></td></tr>
                <tr><td colspan="2" style="text-align:center;padding:2px;"><input type="button" onclick="AddProxyCase('<%=MethodName%>');" class="btn" value="Add to Proxy" /></td></tr>

            </table>
        </div>
    </div>
</div>
